<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>查看商品分类表明细</title>
</head>
<body>
<form>
    <table border="1">
        <tr><td colspan="2"><h1>查看商品分类表明细</h1></td></tr>
        <tr>
            <td>分类ID</td>
            <td>
                   <span id="categoryId"></span>
            </td>
        </tr>
        <tr>
            <td>分类名称</td>
            <td>
                   <span id="categoryName"></span>
            </td>
        </tr>
        <tr>
            <td>分类编码</td>
            <td>
                   <span id="categoryCode"></span>
            </td>
        </tr>
        <tr>
            <td>父分类ID</td>
            <td>
                   <span id="parentId"></span>
            </td>
        </tr>
        <tr>
            <td>分类层级</td>
            <td>
                   <span id="categoryLevel"></span>
            </td>
        </tr>
        <tr>
            <td>分类状态</td>
            <td>
                   <span id="categoryStatus"></span>
            </td>
        </tr>
        <tr>
            <td>最后修改时间</td>
            <td>
                   <span id="modifiedTime"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other1"></span>
            </td>
        </tr>
        <tr>
            <td>其他</td>
            <td>
                   <span id="other2"></span>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="button" id="fanhui" value="返回"/>
            </td>
        </tr>
    </table>
</form>
<script src="/js/jquery-1.12.4.js"></script>
<script>
    var param = location.href.substring(location.href.indexOf('?')+1);
    $.getJSON("/productcategory/findById.json",param,function(detail){
        $("#categoryId").text(detail.categoryId);
        $("#categoryName").text(detail.categoryName);
        $("#categoryCode").text(detail.categoryCode);
        $("#parentId").text(detail.parentId);
        $("#categoryLevel").text(detail.categoryLevel);
        $("#categoryStatus").text(detail.categoryStatus);
        $("#modifiedTime").text(detail.modifiedTime);
        $("#other1").text(detail.other1);
        $("#other2").text(detail.other2);
    });
    $("#fanhui").click(function(){
        location.href="/admin/productcategory/list.html";
    });
</script>

</body>
</html>